package com.dly.blog.exception;

import com.dly.blog.content.ExceptionContent;
import lombok.Getter;

@Getter
public enum UserExceptionEnum {

    USER_IS_NOT_DELETE(new UserExceptionEnum.UserException(ExceptionContent.UserException + 1, "获取日志注解失败"));

    UserExceptionEnum(UserExceptionEnum.UserException userException){
        this.userException = userException;
    }

    private final UserExceptionEnum.UserException userException;


    public static class UserException extends GlobalException{

        private static final String MODULE = "Log";

        public UserException(int code, String message) {
            super(code, message, MODULE);
        }
    }
}
